package edu.cuit.avatar.callback;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/10 16:05
 */
public class OuterTest {
    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.outer();

        //如何创建内部类的实例(内部类包含了一个外围类的引用)
        Outer.Inner inner = outer.new Inner();
        inner.inner();

        System.out.println("=======================");

        int[] list = {-100, 0, -200, 100, 50, 100, 200};
        ArrayAlg.Pair pair = ArrayAlg.getMinAndMax(list);
        System.out.println("min = " + pair.getMin() + ", max = " + pair.getMax());

    }
}
